package com.linwen.javase.基础;

import org.junit.Test;

public class 运算符 {




	/**
	 * @Author zero
	 * @Description  三目运算符
	 * @Date 10:27 PM 2024/8/29
	 * @Param []
	 * @return void
	 **/

	@Test
	public void test() {
		Integer a = 1;
		Integer b = 2;
		Integer c = 3;
		Integer result = (a > b ? a + b : c);
		System.out.println(result);
	}
}
